package com.yanqu.road.entity.log.cross.chuhan;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;

// 不需要了吧
@FieldTypeAnnotation(tableName = "t_l_ck_chuhan_log_appoint", desc = "楚汉争霸-城主任命日志", dataUpload = true, autoSave = true, uploadCk = true, isCross = true, eventName = "chuhan_name")
public class LogChuHanAppoint extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true, dataAttribute = "activityid")
    private int activityId;
    @FieldTypeAnnotation(desc = "城主玩家ID")
    private long winnerUserId;
    @FieldTypeAnnotation(desc = "被任命玩家ID", dataAttribute = "belong_id")
    private long appointUserId;
    @FieldTypeAnnotation(desc = "职位", dataAttribute = "vehsoul_pos")
    private int titleId;
    @FieldTypeAnnotation(desc = "商会活动分组ID", dataAttribute = "group_id")
    private int groupId;
    @FieldTypeAnnotation(desc = "阵营", dataAttribute = "team_id")
    private int camp;

    public LogChuHanAppoint(int activityId, long winnerUserId, long appointUserId, int titleId, int groupId, int camp) {
        this.activityId = activityId;
        this.winnerUserId = winnerUserId;
        this.appointUserId = appointUserId;
        this.titleId = titleId;
        this.groupId = groupId;
        this.camp = camp;
    }

    @Override
    public long getUserId() {
        return appointUserId;
    }
}
